package cn.asura.pojo;

import java.util.Date;

/**
 * @author Sakura
 * @description
 * @createTime 2020-09-20 11:53
 */

public class DateAndView {
    private Date date;
    private Integer view;
    private String weekDay;

    public DateAndView() {
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
        String[] weekday = new String[]{
                "周日", "周一", "周二", "周三", "周四", "周五", "周六"
        };
        this.weekDay = weekday[date.getDay()];
    }

    public Integer getView() {
        return view;
    }

    public void setView(Integer view) {
        this.view = view;
    }

    public String getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(String weekDay) {
        this.weekDay = weekDay;
    }

    @Override
    public String toString() {
        return "DateAndView{" +
                "date=" + date +
                ", view=" + view +
                ", weekDay='" + weekDay + '\'' +
                '}';
    }
}
